package com.yidu.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>Created with IntelliJ IDEA.</p>
 * <p>User: liandyao</p>
 * <p>Date: 2020-06-27</p>
 * <p>Time: 10:00</p>
 * <p>Description: No Description</p>
 */
public class Tools {
    /**
     * 封装一个map
     * @param list
     * @param count
     * @return
     */
    public static Map<String,Object> getBaseMap(List list,int count){
        Map<String,Object> map = new HashMap();
        map.put("data",list);
        map.put("count",count);
        map.put("msg","");
        map.put("code","0");
        return map ;
    }
}
